package com.ftg.learn.chapter08.pattern.factory.computertest;

/**
 * 测试
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/8/3 13:26
 */

public class Demo {

    public static void main(String[] args) {
        Computer c1=ComputerFactory.instanceC("+");
        System.out.println(c1.operation(2.0, 3.0));
        Computer c2=ComputerFactory.instanceC("/");
        System.out.println(c2.operation(3.0, 3.0));
    }
}
